<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth Host Stack Library: LE Security</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth Host Stack Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__btm__ble__sec__api__functions.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">API Reference</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">LE Security</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>Bluetooth LE security API (authorisation, authentication and encryption) </p>
<dl class="section note"><dt>Note</dt><dd>General Security APIs are listed in <a class="el" href="group__ble__common__sec__api__functions.html">Generic Security API</a> section. </dd></dl>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
API Reference</h2></td></tr>
<tr class="memitem:group__ble__common__sec__api__functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__common__sec__api__functions.html">Generic Security API</a></td></tr>
<tr class="memdesc:group__ble__common__sec__api__functions"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bluetooth generic security API. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga806119ffc38aa9ec12a03f9f2c8c8d43"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga806119ffc38aa9ec12a03f9f2c8c8d43">wiced_bt_dev_add_device_to_address_resolution_db</a> (<a class="el" href="structwiced__bt__device__link__keys__t.html">wiced_bt_device_link_keys_t</a> *p_link_keys)</td></tr>
<tr class="memdesc:ga806119ffc38aa9ec12a03f9f2c8c8d43"><td class="mdescLeft">&#160;</td><td class="mdescRight">add link key information to internal address resolution db  <a href="#ga806119ffc38aa9ec12a03f9f2c8c8d43">More...</a><br /></td></tr>
<tr class="separator:ga806119ffc38aa9ec12a03f9f2c8c8d43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga91b6c2557800b5d63f8c94c17af05183"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga91b6c2557800b5d63f8c94c17af05183">wiced_bt_dev_remove_device_from_address_resolution_db</a> (<a class="el" href="structwiced__bt__device__link__keys__t.html">wiced_bt_device_link_keys_t</a> *p_link_keys)</td></tr>
<tr class="memdesc:ga91b6c2557800b5d63f8c94c17af05183"><td class="mdescLeft">&#160;</td><td class="mdescRight">remove link key information from internal address resolution db  <a href="#ga91b6c2557800b5d63f8c94c17af05183">More...</a><br /></td></tr>
<tr class="separator:ga91b6c2557800b5d63f8c94c17af05183"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga411296312ff6cdcc59a48eb83095faf7"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga411296312ff6cdcc59a48eb83095faf7">wiced_bt_dev_get_acl_conn_handle</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bdaddr, <a class="el" href="group__bt__types.html#gae0d25ec063a889c537f3a77010cf5ef0">wiced_bt_transport_t</a> transport)</td></tr>
<tr class="memdesc:ga411296312ff6cdcc59a48eb83095faf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the acl connection handle for bdaddr  <a href="#ga411296312ff6cdcc59a48eb83095faf7">More...</a><br /></td></tr>
<tr class="separator:ga411296312ff6cdcc59a48eb83095faf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3acbf83e7825ddbcdd6d792543ab0422"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga3acbf83e7825ddbcdd6d792543ab0422">wiced_bt_ble_security_grant</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, <a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_bt_dev_status_t</a> res)</td></tr>
<tr class="memdesc:ga3acbf83e7825ddbcdd6d792543ab0422"><td class="mdescLeft">&#160;</td><td class="mdescRight">Grant or deny access.  <a href="#ga3acbf83e7825ddbcdd6d792543ab0422">More...</a><br /></td></tr>
<tr class="separator:ga3acbf83e7825ddbcdd6d792543ab0422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1745ec7401f09c80ec5aecbacc9c0002"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga1745ec7401f09c80ec5aecbacc9c0002">wiced_bt_ble_data_signature</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, uint8_t *p_text, uint16_t len, <a class="el" href="group__wicedbt___conn.html#ga39b3b50eac531691f2bc87291526bb73">wiced_dev_ble_signature_t</a> signature)</td></tr>
<tr class="memdesc:ga1745ec7401f09c80ec5aecbacc9c0002"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sign the data using AES128 CMAC algorith.  <a href="#ga1745ec7401f09c80ec5aecbacc9c0002">More...</a><br /></td></tr>
<tr class="separator:ga1745ec7401f09c80ec5aecbacc9c0002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga771629322c842c541611d928ad128a40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga771629322c842c541611d928ad128a40">wiced_bt_ble_verify_signature</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, uint8_t *p_orig, uint16_t len, uint32_t counter, uint8_t *p_comp)</td></tr>
<tr class="memdesc:ga771629322c842c541611d928ad128a40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verify the data signature.  <a href="#ga771629322c842c541611d928ad128a40">More...</a><br /></td></tr>
<tr class="separator:ga771629322c842c541611d928ad128a40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa3a12d9312cb8bac5e7eb7033aedda8c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#gaa3a12d9312cb8bac5e7eb7033aedda8c">wiced_bt_ble_get_security_state</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, uint8_t *p_le_sec_flags, uint8_t *p_le_key_size)</td></tr>
<tr class="memdesc:gaa3a12d9312cb8bac5e7eb7033aedda8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get security mode 1 flags and encryption key size for LE peer.  <a href="#gaa3a12d9312cb8bac5e7eb7033aedda8c">More...</a><br /></td></tr>
<tr class="separator:gaa3a12d9312cb8bac5e7eb7033aedda8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2780ef822665cbfd72ba2b2eeefbc35e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_bt_dev_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#ga2780ef822665cbfd72ba2b2eeefbc35e">wiced_bt_ble_set_privacy_mode</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> remote_bda, <a class="el" href="group__bt__types.html#ga97897f7408c23723933e9d21815c7294">wiced_bt_ble_address_type_t</a> rem_bda_type, <a class="el" href="group__wicedbt___conn.html#gae0c321e7abc54eeb9b5c39354a36dd8c">wiced_bt_ble_privacy_mode_t</a> privacy_mode)</td></tr>
<tr class="memdesc:ga2780ef822665cbfd72ba2b2eeefbc35e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates privacy mode if device is already available in controller resolving list.  <a href="#ga2780ef822665cbfd72ba2b2eeefbc35e">More...</a><br /></td></tr>
<tr class="separator:ga2780ef822665cbfd72ba2b2eeefbc35e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1a08bf54c9c06015c1bbafbaab433c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#gaa1a08bf54c9c06015c1bbafbaab433c1">wiced_ble_private_device_address_resolution</a> (<a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> rpa, <a class="el" href="group__bt__types.html#ga3081047eede654f70f0bf771e34e47a8">BT_OCTET16</a> irk)</td></tr>
<tr class="memdesc:gaa1a08bf54c9c06015c1bbafbaab433c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function wiced_ble_private_device_address_resolution.  <a href="#gaa1a08bf54c9c06015c1bbafbaab433c1">More...</a><br /></td></tr>
<tr class="separator:gaa1a08bf54c9c06015c1bbafbaab433c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafadf1111bda74127bcd449cf16ad5c06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__btm__ble__sec__api__functions.html#gafadf1111bda74127bcd449cf16ad5c06">wiced_bt_ble_address_resolution_list_clear_and_disable</a> (void)</td></tr>
<tr class="memdesc:gafadf1111bda74127bcd449cf16ad5c06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function wiced_bt_ble_address_resolution_list_clear_and_disable.  <a href="#gafadf1111bda74127bcd449cf16ad5c06">More...</a><br /></td></tr>
<tr class="separator:gafadf1111bda74127bcd449cf16ad5c06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3acbf83e7825ddbcdd6d792543ab0422"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3acbf83e7825ddbcdd6d792543ab0422">&#9670;&nbsp;</a></span>wiced_bt_ble_security_grant()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_ble_security_grant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_bt_dev_status_t</a>&#160;</td>
          <td class="paramname"><em>res</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Grant or deny access. </p>
<p>Used in response to an BTM_SECURITY_REQUEST_EVT event.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">bd_addr</td><td>: peer device bd address. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">res</td><td>: WICED_BT_SUCCESS to grant access; WICED_BT_UNSUPPORTED , if local device does not allow pairing; WICED_BT_REPEATED_ATTEMPTS otherwise</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> None </b> </dd></dl>

</div>
</div>
<a id="ga806119ffc38aa9ec12a03f9f2c8c8d43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga806119ffc38aa9ec12a03f9f2c8c8d43">&#9670;&nbsp;</a></span>wiced_bt_dev_add_device_to_address_resolution_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a> wiced_bt_dev_add_device_to_address_resolution_db </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__device__link__keys__t.html">wiced_bt_device_link_keys_t</a> *&#160;</td>
          <td class="paramname"><em>p_link_keys</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>add link key information to internal address resolution db </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_link_keys</td><td>: link keys information stored in application side</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>wiced_result_t </dd></dl>

</div>
</div>
<a id="ga91b6c2557800b5d63f8c94c17af05183"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga91b6c2557800b5d63f8c94c17af05183">&#9670;&nbsp;</a></span>wiced_bt_dev_remove_device_from_address_resolution_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a> wiced_bt_dev_remove_device_from_address_resolution_db </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__device__link__keys__t.html">wiced_bt_device_link_keys_t</a> *&#160;</td>
          <td class="paramname"><em>p_link_keys</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>remove link key information from internal address resolution db </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_link_keys</td><td>: link keys information stored in application side</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>wiced_result_t </dd></dl>

</div>
</div>
<a id="ga411296312ff6cdcc59a48eb83095faf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga411296312ff6cdcc59a48eb83095faf7">&#9670;&nbsp;</a></span>wiced_bt_dev_get_acl_conn_handle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t wiced_bt_dev_get_acl_conn_handle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bdaddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gae0d25ec063a889c537f3a77010cf5ef0">wiced_bt_transport_t</a>&#160;</td>
          <td class="paramname"><em>transport</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the acl connection handle for bdaddr </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">bdaddr</td><td>device identity address </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">transport</td><td>connection transport</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: acl connection handle </dd></dl>

</div>
</div>
<a id="ga1745ec7401f09c80ec5aecbacc9c0002"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1745ec7401f09c80ec5aecbacc9c0002">&#9670;&nbsp;</a></span>wiced_bt_ble_data_signature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> wiced_bt_ble_data_signature </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt___conn.html#ga39b3b50eac531691f2bc87291526bb73">wiced_dev_ble_signature_t</a>&#160;</td>
          <td class="paramname"><em>signature</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sign the data using AES128 CMAC algorith. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">bd_addr</td><td>target device the data to be signed for. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_text</td><td>signing data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of the signing data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">signature</td><td>output parameter where data signature is going to be stored</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if signing successful, otherwise FALSE. </dd></dl>

</div>
</div>
<a id="ga771629322c842c541611d928ad128a40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga771629322c842c541611d928ad128a40">&#9670;&nbsp;</a></span>wiced_bt_ble_verify_signature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> wiced_bt_ble_verify_signature </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_orig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_comp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Verify the data signature. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">bd_addr</td><td>target device the data to be signed for. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_orig</td><td>original data before signature. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>length of the signing data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">counter</td><td>counter used when doing data signing </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_comp</td><td>signature to be compared against.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if signature verified correctly; otherwise FALSE. </dd></dl>

</div>
</div>
<a id="gaa3a12d9312cb8bac5e7eb7033aedda8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa3a12d9312cb8bac5e7eb7033aedda8c">&#9670;&nbsp;</a></span>wiced_bt_ble_get_security_state()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> wiced_bt_ble_get_security_state </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_le_sec_flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_le_key_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get security mode 1 flags and encryption key size for LE peer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">bd_addr</td><td>: peer address </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_le_sec_flags</td><td>: security flags (see <a class="el" href="group__wicedbt___conn.html#ga43bc963a74ea1613ba9951538a059838" title="security settings used with L2CAP LE COC">wiced_bt_ble_sec_flags_e</a>) </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_le_key_size</td><td>: encryption key size</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if successful </dd></dl>

</div>
</div>
<a id="ga2780ef822665cbfd72ba2b2eeefbc35e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2780ef822665cbfd72ba2b2eeefbc35e">&#9670;&nbsp;</a></span>wiced_bt_ble_set_privacy_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_bt_dev_status_t</a> wiced_bt_ble_set_privacy_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>remote_bda</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#ga97897f7408c23723933e9d21815c7294">wiced_bt_ble_address_type_t</a>&#160;</td>
          <td class="paramname"><em>rem_bda_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt___conn.html#gae0c321e7abc54eeb9b5c39354a36dd8c">wiced_bt_ble_privacy_mode_t</a>&#160;</td>
          <td class="paramname"><em>privacy_mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Updates privacy mode if device is already available in controller resolving list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">remote_bda</td><td>-remote device address received during connection up </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rem_bda_type</td><td>-remote device address type received during connection up </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">privacy_mode</td><td>- privacy mode (see <a class="el" href="group__wicedbt___conn.html#gae0c321e7abc54eeb9b5c39354a36dd8c">wiced_bt_ble_privacy_mode_t</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>wiced_bt_dev_status_t <br />
<b> WICED_BT_ILLEGAL_VALUE </b> : if paramer is wrong <br />
<b> WICED_BT_UNSUPPORTED </b> : if command not supported <br />
<b> WICED_BT_UNKNOWN_ADDR </b> : if bd_addr is wrong <br />
<b> WICED_BT_ILLEGAL_ACTION </b> : if device not added to resolving list or peer irk is not valid <br />
<b> WICED_BT_ERROR </b> : error while processing the command <br />
<b> WICED_BT_SUCCESS</b> : if command started </dd></dl>

</div>
</div>
<a id="gaa1a08bf54c9c06015c1bbafbaab433c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa1a08bf54c9c06015c1bbafbaab433c1">&#9670;&nbsp;</a></span>wiced_ble_private_device_address_resolution()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a> wiced_ble_private_device_address_resolution </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>rpa</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#ga3081047eede654f70f0bf771e34e47a8">BT_OCTET16</a>&#160;</td>
          <td class="paramname"><em>irk</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function wiced_ble_private_device_address_resolution. </p>
<pre class="fragment">             This API verifies whether given device address is Resolvable Private Address or not
</pre><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rpa</td><td>LE Resolvable Private Address </td></tr>
    <tr><td class="paramname">irk</td><td>LE IRK </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>wiced_result_t WICED_BT_SUCCESS the identity of device address has been resolved. WICED_BT_ERROR otherwise. </dd></dl>

</div>
</div>
<a id="gafadf1111bda74127bcd449cf16ad5c06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafadf1111bda74127bcd449cf16ad5c06">&#9670;&nbsp;</a></span>wiced_bt_ble_address_resolution_list_clear_and_disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___result.html#gacfc32ead8a827d53416f01b19eb58310">wiced_result_t</a> wiced_bt_ble_address_resolution_list_clear_and_disable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function wiced_bt_ble_address_resolution_list_clear_and_disable. </p>
<p>This API clears the address resolution list and disables the address resolution feature.</p>
<dl class="section return"><dt>Returns</dt><dd>wiced_result_t WICED_BT_SUCCESS if address resolution list is cleared and adress resolution feature is disabled. WICED_BT_ERROR otherwise. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth Host Stack Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
